package com.gp.model.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.annotations.TableName;
import com.gp.common.utils.StringUtil;

/**
 * @author: 弓成龙
 * @date  : 2018年3月1日
 * @email : gcx909109@sina.cn
 * @description: 优惠券-用户实体
 */
@TableName("base_coupon_distribution")
public class BaseCouponDistribution implements Serializable{
  
  private Long id;
  /** 优惠券编码 **/
  private String couponCode;
  /** 发放用户id **/
  private String userId;
  /** 发放时间  **/
  private String distributeTime;
  /** 是否可用 **/
  private String isvalid;
  
  public BaseCouponDistribution() {}
  public BaseCouponDistribution(Long couponId, Long id2) {
    this.couponCode=couponId.toString();
    this.userId = id2.toString();
    this.distributeTime = StringUtil.obtinDateStr(null);
  }
  public Long getId() {
    return id;
  }
  public void setId(Long id) {
    this.id = id;
  }
  public String getCouponCode() {
    return couponCode;
  }
  public void setCouponCode(String couponCode) {
    this.couponCode = couponCode;
  }
  public String getUserId() {
    return userId;
  }
  public void setUserId(String userId) {
    this.userId = userId;
  }
  public String getDistributeTime() {
    return distributeTime;
  }
  public void setDistributeTime(String distributeTime) {
    this.distributeTime = distributeTime;
  }
  public String getIsvalid() {
    return isvalid;
  }
  public void setIsvalid(String isvalid) {
    this.isvalid = isvalid;
  }
  
}

